package com.chianghao.rock.admin.system.route.dto;

import javax.validation.constraints.NotNull;

import com.chianghao.core.web.ValidatedGroup;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(description="路由-接口")
public class ApiDto {

	@ApiModelProperty("主键")
	@NotNull(groups = {ValidatedGroup.Modify.class},message = "error:id,not.null")
	private Long id;

	@ApiModelProperty("父主键")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:parent.id,not.null")
	private Long parentId;
	
	@ApiModelProperty("排序")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:sort,not.null")
	private Integer sort;
	
	@ApiModelProperty("编号")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:code,not.null")
	private String code;

	@ApiModelProperty("名称")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:name,not.null")
	private String  name;

	@ApiModelProperty("名称")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:api.path,not.null")
    private String apiPath;
    
	@ApiModelProperty("名称")
	@NotNull(groups = {ValidatedGroup.Add.class},message = "error:api.method,not.null")
    private String apiMethod;
	
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParentId() {
		return parentId;
	}

	public void setParentId(Long parentId) {
		this.parentId = parentId;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getApiPath() {
		return apiPath;
	}

	public void setApiPath(String apiPath) {
		this.apiPath = apiPath;
	}

	public String getApiMethod() {
		return apiMethod;
	}

	public void setApiMethod(String apiMethod) {
		this.apiMethod = apiMethod;
	}
	
}
